﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerSearch.aspx.cs"
    Inherits="CustomerMgr.Web.CustomerSearch" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadFormDecorator ID="RadFormDecorator1" DecoratedControls="All" runat="server"
        Skin="Sunset" />
    <script type="text/javascript">
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
        function populateCityName(arg) {
            var cityName = document.getElementById("cityName");
            cityName.value = arg;
        }

        function AdjustRadWidow() {
            setTimeout(function () { GetRadWindow().autoSize(true) }, 500);
        }
        function doSearch() {

        }
        function returnToParent() {
            var oArg = new Object();
            oArg.cityName = document.getElementById("cityName").value;
            var datePicker = $find("<%= Datepicker1.ClientID %>");
            oArg.selDate = datePicker.get_selectedDate().toLocaleDateString();
            var oWnd = GetRadWindow();
            if (oArg.selDate && oArg.cityName) {
                oWnd.close(oArg);
            }
            else {
                alert("Please fill both fields");
            }
        }
    </script>
    <div style="width: 350px; height: 193px;">
        <fieldset id="fld1">
            <legend>Thông tin khách hàng</legend>
            <table cellpadding="2" cellspacing="2" width="100%">
                <tr>
                    <td>
                        Tên KH
                    </td>
                    <td>
                        <input type="text" style="width: 180px" id="cusName" />
                    </td>
                    <td>
                        <input type="button" value="Tìm kiếm" id="btnsearch" />
                    </td>
                </tr>
                <tr>
                </tr>
            </table>
        </fieldset>
        <fieldset id="fld2">
            <legend>Danh sách tìm kiếm</legend>
            <table cellpadding="1" cellspacing="1" width="100%">
                <tr>
                    <td style="width: 20px; text-align: center;">
                        <input type="radio" value="" title="" id="rdoName" />
                    </td>
                    <td>
                        <label for="rdoName">
                            Nguyễn Văn Thắng</label>
                    </td>
                </tr>
            </table>
        </fieldset>
        <div style="margin-top: 4px; text-align: right;">
            <button title="Submit" id="close" onclick="returnToParent(); return false;">
                Lựa chọn</button>
        </div>
    </div>
    </form>
</body>
</html>
